import helpers.FileHelper as FileHelper
import helpers.MiscHelper as MiscHelper
import helpers.GUIHelper as GUIHelper



def check(root_path):
    if not FileHelper.exists(root_path, "extra.json"):
        return
    extra = FileHelper.r_json(root_path, "extra.json")
    handlers = MiscHelper.json_get(extra, "setting", "effect_adjust_params")
    if handlers is not None:
        for handler in handlers:
            if handler["effect_key"] == "effects_adjust_sticker":
                GUIHelper.ask_continue2("Warning", "effects_adjust_sticker")